<?php
namespace app\interfaces\controller;

use think\Cache;

class Search
{

    /*
     * 用户端 - 热门搜索
     */
    public function hot()
    {
        $list = explode(',', Cache::get('web_hot_search'));
        if ($list){
            $list = array_map(function ($item){
                return trim($item);
            },$list);
        }


        return ['code' => 200, 'message' => '成功', 'data' => $list];
    }

}
